//
//  ZYModeSettingView.h
//  YiLin
//
//  Created by Zyark on 2018/6/5.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZYModeTypeModel;
@class ZYModeSettingView;

@protocol ZYModeSettingViewDelegate <NSObject>
@optional
/**
 温度改变
 @param modeSettingView 当前view
 @param temperature 当前温度
 @param modeType 当前模式
 */
-(void)modeSettingView:(ZYModeSettingView *)modeSettingView changeTemperature:(CGFloat)temperature  modeType:(NSUInteger)modeType;

@end

@interface ZYModeSettingView : UIView
@property(nonatomic,assign) CGFloat maxTemperature;
@property(nonatomic,assign) CGFloat systemTemperature;
@property(nonatomic,assign) CGFloat currentTemperature;
@property(nonatomic,strong) ZYModeTypeModel *model;
@property(nonatomic,weak) id<ZYModeSettingViewDelegate> delegate;
@property(nonatomic,assign) BOOL isNotEditable;
@end
